package com.github.poplar.controller;

import com.github.poplar.monitortooapi.OperationSysInterface;
import com.github.poplar.monitortooapi.vo.OperationSysVO;
import com.github.poplar.monitortoolcommon.aop.annotation.LogDescribe;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: 测试
 * @author: hkai
 * @date: 2021/12/21 9:30 下午
 * @version: 1.0
 */
@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    OperationSysInterface operationSysInterface;

    @GetMapping("/t1")
    public String t1() {
        return "这是一个测试......";
    }

    @GetMapping("/info")
    @LogDescribe(desc = "获取计算机信息")
    public OperationSysVO info() {
        return operationSysInterface.OperationSysInfo();
    }
}
